
<?php if ($this->pageCount) { ?>
    <div class="content-pagenation">
        <ul>
            <!-- Previous page link -->
            <?php if (isset($this->previous)) { ?>
                <li><a href="<?php echo $this->url($this->route, array('cat_name' => $this->cat_name, 'cat_id' => $this->cat_id, 'maker_name' => $this->maker_name, 'order_by' => $this->order, 'price_step' => $this->price_step, 'page' => $this->previous)); ?>">&lt; Trước</a></li>
            <?php } else { ?>
                <li><a>&lt; Trước</a></li>
            <?php } ?>

            <!-- Numbered page links -->
            <?php foreach ($this->pagesInRange as $page) { ?>
                <?php if ($page != $this->current) { ?>
                    <li>
                        <a href="<?php echo $this->url($this->route, array('cat_name' => $this->cat_name, 'cat_id' => $this->cat_id, 'maker_name' => $this->maker_name, 'order_by' => $this->order, 'price_step' => $this->price_step, 'page' => $page)); ?>"><?php echo $page; ?></a>
                    </li>
                <?php } else { ?>
                    <li class="active"><a><?php echo $page; ?></a></li>
                        <?php } ?>
                    <?php } ?>

            <!-- Next page link -->
            <?php if (isset($this->next)) { ?>
                <li>
                    <a href="<?php echo $this->url($this->route, array('cat_name' => $this->cat_name, 'cat_id' => $this->cat_id, 'maker_name' => $this->maker_name, 'order_by' => $this->order, 'price_step' => $this->price_step, 'page' => $this->next)); ?>">Sau &gt;</a>
                </li>
            <?php } else { ?>
                <li><a>Sau &gt;</a></li>
            <?php } ?>
        </ul>
    </div>
<?php } ?>